package com.findu.activity;

import com.example.findu.R;
import com.example.findu.R.id;
import com.example.findu.R.layout;
import com.findu.control.Public_title_dynamic;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;

/**
 * 
* @ClassName: Home_more_personal_Phot 
* @Description: TODO(更多-头像选择图片) 
* @author A18ccms a18ccms_gmail_com 
* @date 2015-11-4 下午3:39:58 
*
 */
public class Home_more_personal_Phot extends Activity {
	// 标题控制
	Public_title_dynamic public_title;
	// 声明title布局
	private View include_view;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_home_more_personal__phot);
		
		//初始化标题
		init_title();
	}

	/**
	 * 初始化title方法
	 */
	private void init_title() {
		// 初始化title
		include_view = findViewById(R.id.home_More_personal_photo_include);
		public_title = new Public_title_dynamic(include_view); // 新建工具类设置布局控件

		// title详细设置
		public_title.setTextLeft("图片");
		public_title.setTextView("");
		public_title.setRighttImageVisiable(false);
		public_title.setTextRight_Gone();

		// 设置标题事件
		ImageView leftImage = (ImageView) include_view
				.findViewById(R.id.public_title_dynamic__liftImage);
		leftImage.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				finish();
			}
		});
	}
}
